#!/bin/bash -e

function info() {
    echo Usage: `basename $0` [-p out_prefix -s out_suffix] path\(s\)
    exit 1
}

while getopts ":p:s:t:" opt; do
    case $opt in
        p) out_prefix=$OPTARG;;
        s) out_prefix=$OPTARG;;
        t) threads=$OPTARG;;
        ?) info;;
    esac
done
shift $(($OPTIND - 1))

if [ $# -lt 1 ]; then info; fi

. $var

for i; do
    if test -e $i; then
        b=`basename $i`
        ln -sf $i $b
    else
        echo $i not exists.
    fi
done

. $cmd_done
